package com.meta.platform.contract.intf.cmd.contractfundrecord;

import com.meta.platform.contract.intf.entity.ContractFundRecord;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

@Data
public class AddContractFundRecordCmd extends ContractFundRecord {

    @ApiModelProperty(value = "本次回款金额")
    @NotNull(message = "回款金额不能为空")
    private BigDecimal actualFundAmount;

    @NotNull(message = "合同不能为空")
    @ApiModelProperty(value = "合同ID")
    private Long contractId;

    @NotNull(message = "客户不能为空")
    @ApiModelProperty(value = "客户ID")
    private Long customerId;

    @NotNull(message = "回款计划不能为空")
    @ApiModelProperty(value = "回款计划id")
    private Long contractPlanFundId;

    @NotNull(message = "回款时间不能为空")
    @ApiModelProperty(value = "回款时间")
    private Date actualFundDate;

}
